/*
 *    This program is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    2013 year
 *    Author: Esipenko Aleksey (Alexorleon)
 *    E-Mail: alexorleon@gmail.com
 */
#ifndef ZIPCODEITEM_H
#define ZIPCODEITEM_H

#include "global.h"
#include <QString>

struct ZipcodeItem{

    explicit ZipcodeItem(const int &id_,
                         const QString &date_time_=QString(),
                         const QString &status_=QString(),
                         const QString &qrpath_=QString(),
                         //const QString &qrtext_=QString(),
                         const QString &performer_=QString())
                         //const QString &placement_=QString())
        : id(id_), date_time(date_time_), status(status_), qrpath(qrpath_), /*qrtext(qrtext_),*/
          performer(performer_)/*, placement(placement_)*/ {}

    bool operator<(const ZipcodeItem &other) const {
        return id != other.id ? id < other.id : date_time < other.date_time;
    }

    int id;
    QString date_time;
    QString status;
    QString qrpath;
    //QString qrtext;
    QString performer;
    //QString placement;
};

#endif // ZIPCODEITEM_H
